import * as types from '../mutation-types'
const state = {
    create_summary_count: 0
}

const getters = {
    create_summary_count: () => state.create_summary_count

}

const actions = {
    AddCreateSummaryCount({ commit }) {
        commit(types.ADD_CREATE_SUMMARY_COUNT)
    },
    DelCreateSummaryCount({ commit }) {
        commit(types.DEL_CREATE_SUMMARY_COUNT)
    }
}
const mutations = {
    [types.ADD_CREATE_SUMMARY_COUNT](state) {
        let create_summary_count = state.create_summary_count + 1
        state.create_summary_count = create_summary_count
    },
    [types.DEL_CREATE_SUMMARY_COUNT](state) {
        let create_summary_count = state.create_summary_count - 1
        state.create_summary_count = create_summary_count
    },

}
export default {
    state,
    getters,
    actions,
    mutations
}